#!/usr/bin/python3
# -*- coding:utf-8 -*-
"""
@author: henry_oulen@163.com
@file: __init__.py.py
@time: 2023/10/26 14:36
@desc: 
"""

#引入基本的包
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker


# 连接数据库的数据

# HOSTNAME = '127.0.0.1'
# PORT = '3306'
# DATABASE = 'tornadotest'
# USERNAME = 'root'
# PASSWORD = 'root'
# # DB_URI的格式：dialect（mysql/sqlite）+driver://username:password@host:port/database?charset=utf8
#
# DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME,PASSWORD,HOSTNAME,PORT,DATABASE)
#
#
# # 创建引擎
#
# engine = create_engine(DB_URI, echo=False )
#
#
# # sessionmaker生成一个session类
#
# Session = sessionmaker(bind=engine)
# dbSession = Session()